<template>
  <div v-show="header.opened" class="container-layer-header">
      <span v-if="header.canBack" @click="$router.back()"><</span>
    <!-- <img v-if="header.canBack" src="@/assets/exit.png" @click="$router.back()"> -->
    <span class="title">{{ header.title }}</span>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  computed: {
    ...mapGetters(['header'])
  }
}
</script>

<style lang="less" scoped>
.container-layer-header {
  width: 100%;
  height: 45px;
  padding: 0 15px;
  position: fixed;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  background-color: #fff;
  .title {
    margin-left: 15px;
    color: #000;
  }
}
</style>
